package com.honghu.cloud.dto;

import java.util.Date;



/**
 * 用户收货地址类，用来管理所有买家的收货地址信息，买家在提交订单时候可以选择这里的收货地址
 * @author Administrator
 *
 */
public class AddressDto extends BaseDto {
	
	private static final long serialVersionUID = 6268068430084345904L;
	
	private Long area_id;
	private Long user_id;
	
	private AreaDto area;// 收货人地区
	private UserDto user;// 地址对应的用户
	private Double lat;// 发货人   纬度
	private Double lng;// 发货人    经度
	private Double distance  ;     //  距离
	private String trueName;// 收货人姓名
	private String area_info;// 收货人详细地址
	private String zip;// 邮政编码
	private String telephone;// 联系电话
	private String mobile;// 手机号码
	private int default_val;// 是否为默认收货地址，1为默认地址
	

	public AddressDto(Long id, Date addTime) {
		super(id, addTime);
	}

	public AddressDto() {
	}

	public int getDefault_val() {
		return this.default_val;
	}

	public void setDefault_val(int default_val) {
		this.default_val = default_val;
	}

	public UserDto getUser() {
		return this.user;
	}

	public void setUser(UserDto user) {
		this.user = user;
	}

	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public AreaDto getArea() {
		return this.area;
	}

	public void setArea(AreaDto area) {
		this.area = area;
	}

	public String getArea_info() {
		return this.area_info;
	}

	public void setArea_info(String area_info) {
		this.area_info = area_info;
	}

	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Long getArea_id() {
		return area_id;
	}

	public void setArea_id(Long area_id) {
		this.area_id = area_id;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public Double getDistance() {
		return distance;
	}

	public void setDistance(Double distance) {
		this.distance = distance;
	}
	
}
